package homework26;
public  class AbstractEncryptFacade {
    //系统对象的引用
    private DataRead dataRead;
    private DataDisplay dataDisplay;
    private AnalysisData analysisData;
    private String dataNameSrc;
    private String encrypt;

    public AbstractEncryptFacade(){
        dataRead =new DataRead();
        dataDisplay  = new DataDisplay();
        analysisData  =new AnalysisData();
    }
    public void fileEncrypt(String fileNameSrc, String fileNameDes) {
        
        //调用系统对象的方法
        String plainStr = dataRead.read(dataNameSrc);
        String encryption = analysisData.encrypt(encrypt);
        String encryptStr = null;
        dataDisplay.display(encryptStr,fileNameDes);
    }
}
